package com.ky.gp.app.controller;

import com.ky.common.vo.R;
import com.ky.gp.app.service.QuestionFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * --- 天道酬勤 ---
 *
 * @author ZhaoTongTong
 * @date 2024/6/19
 * @desc -- 代码敲烂 月薪过万--
 */
@RestController
@RequestMapping("/api/question")
public class QuestionController {
    @Autowired
    private QuestionFeign questionFeign;
    @RequestMapping("/findAllQuestion")
    public R question() {
        return questionFeign.question();
    }
    @RequestMapping("/findAllQuestionByType")
    public R findAllQuestionByType(@RequestParam("type")Integer type) {
        return questionFeign.findAllQuestionByType(type);
    }
}
